# -*- coding: utf-8 -*-
a_list = [3, 4, 5, 6, 7, 8, 9, 11, 12, 13]

a_list[:0] = [1, 2]  # 在列表头部增加元素
print(a_list)
a_list[3:3] = [4]  # 在列表中插入元素
print(a_list)
a_list[:5] = [1,2]
print(a_list)
a_list[3:] = [4,5,6]
print(a_list)
a_list[::2] = [0]*3
print(a_list)
a_list[::2] = ['a','b','c']
print(a_list)
a_list[::2] = [1,2,3]
a_list[:3] = []
print(a_list)